import request from '../utils/request.js'
export const todoAdd = (data)=>{  //新增任务
  return request.post('/1.1/classes/todo',data)
}

export const todoList = ()=>{  //加载任务列表
  return request.get('/1.1/classes/todo')
}

export const todoCheck = (id,isCheck)=>{  //修改任务勾选状态
  return request.put(`/1.1/classes/todo/${id}`,{isCheck})
}

export const todoDel = (id)=>{  //删除任务
  return request.delete(`/1.1/classes/todo/${id}`)
}